<?php


class b2c_ctl_wap_orderCancel extends b2c_ctl_wap_common{  

    function __construct(&$app){
        parent::__construct($app);
      
        $shopname = app::get('wap')->getConf('wap.name');
        if(isset($shopname)){
            $this->title = app::get('b2c')->_('会员中心').'_'.$shopname;
            $this->keywords = app::get('b2c')->_('会员中心_').'_'.$shopname;
            $this->description = app::get('b2c')->_('会员中心_').'_'.$shopname;
        }
        $this->action = $this->_request->get_act_name();
        if(!$this->action) $this->action = 'index';
        $this->pagedata['res_url'] = $this->app->res_url;
        $this->pagedata['member'] = $this->get_current_member();
        /** end **/
    }
    function index(){
        app::get("b2c")->model("orders")->update(array("status"=>"dead"),array('createtime|sthan'=>time()-1800,"pay_status"=>0,'status'=>'active'));
    }
    function addOrderTohaiwai(){
        $input['method'] = array("file"=>"mobileapi_rpc_orderaddingtimer","action"=>"ordersadd");
        $input['data'] = array();
        var_dump($this->getApi($input));
    }
}
